import routers from '@/router';

export const findRouter = (currentRouter) => {
        const router = routers.filter(r => r.path === currentRouter);
        return router;
};

export const findChildRouter = (childRoutes, currentRouter) => {
        const router = childRoutes.filter(r => r.path === currentRouter);
        return router;
};